package com.yayawan.laomigame.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Test {
    public static void main(String[] args) {

        String kk="[a-zA-z]+://[^\"]*";

        Pattern pattern = Pattern
                .compile(kk);
        // 空格结束

        Matcher matcher = pattern.matcher("<video class=\"video-player--ORxFE hide--1XNRY\" src=\"https://aweme.snssdk.com/aweme/v1/playwm/?video_id=v0300f3b0000bub5fbej7d8ce0mki400&amp;ratio=720p&amp;line=0\" preload=\"auto\" type=\"video/mp4\" width=\"100%\" webkit-playsinline=\"true\" playsinline=\"\" x5-video-player-type=\"h5\" x5-video-player-fullscreen=\"portraint\"></video><img src=\"https://p9-dy.byteimg.com/img/tos-cn-p-0015/55d3fee0c26548d6b9ce7ee61c098c55~c5_300x400.jpeg?from=2563711402_large\" class=\"poster--2HCwm\"><div class=\"video-msg-container--3cox4\"></div><div class=\"img-container--1EDVT play-loading--2UFkk hide--1XNRY\" style=\"background-image: url(&quot;");
        System.out.println("=======1=========");

        matcher.find();

            System.out.println(matcher.group(0));

    }
}
